/* This is my first Arduino sketch. The tutorial is from 
tronixstuff.wordpress.com and is the second program at the end of chapter 0.*/

int del=100;
  
void setup(){
  for(int i=2; i<=9; i++){
    pinMode(i,OUTPUT);
  }
}

void loop(){
  for(int i=2; i<=9; i++){
    digitalWrite(i,HIGH);
    delay(del);
    digitalWrite(i,LOW);
  }
  for(int i=8; i>=3; i--){
    digitalWrite(i,HIGH);
    delay(del);
    digitalWrite(i,LOW);
  }
}
